package com.gnerv.cms.dto;

import com.gnerv.cms.entity.Permission;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * <p>
 * 基础平台-权限保存DTO
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
@Data
public class PermissionSaveDTO {

    private String ukId;
    private String code;
    private String name;
    private String value;
    private String url;
    private String summary;
    private Integer status;
    private Integer sort;

    public Permission convert() {
        Permission permission = new Permission();
        BeanUtils.copyProperties(this, permission);
        return permission;
    }
}
